package com.egg.auth.entity.role;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author east
 * @since 2021-07-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "auth_role")
@ApiModel(value = "Role对象", description = "角色表")
public class Role extends BaseEntity {


    @ApiModelProperty(value = "角色名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "角色编码")
    @TableField(value = "auth_code")
    private String authCode;

    @ApiModelProperty(value = "角色排序")
    @TableField(value = "sort")
    private Integer sort;

    @ApiModelProperty(value = "启用")
    @TableField(value = "enabled")
    private Boolean enabled;

    @ApiModelProperty(value = "数据范围", notes = "com.egg.auth.enums.role.RoleDataScopeEnum")
    @TableField(value = "data_scope")
    private String dataScope;


}
